 package com.lj.mcore.entity;


 import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.Entity;
 import jakarta.persistence.OneToMany;
 import jakarta.persistence.Table;

 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_rolegroup")
 public class RoleGroup extends IdEntity
 {
   private String name;
   private int sequence;
   private String type;
 
   @OneToMany(mappedBy="rg")
   private List<Role> roles = new ArrayList();
 
   public String getName() {
     return this.name;
   }
 
   public void setName(String name) {
     this.name = name;
   }
 
   public int getSequence() {
     return this.sequence;
   }
 
   public void setSequence(int sequence) {
     this.sequence = sequence;
   }
 
   public List<Role> getRoles() {
     return this.roles;
   }
 
   public void setRoles(List<Role> roles) {
     this.roles = roles;
   }
 
   public String getType() {
     return this.type;
   }
 
   public void setType(String type) {
     this.type = type;
   }
 }



 
 